<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<link rel="stylesheet" href="${pageContext.request.contextPath}/styles/status.css">

<div class="status-wrapper">
    <div class="container">
        <%-- slogan --%>
        <div class="slogan">
            吃好，睡好，学好
        </div>

        <%-- 用户状态 --%>
        <div class="status">
            <c:if test="${ empty customer }">
                <a href="/customer/sign/in">登录</a>
                <i></i>
                <a href="/customer/sign/up">注册</a>
            </c:if>
            <c:if test="${ not empty customer }">
                 <a href="#" >欢迎${ customer.nickname }</a>
                 <i></i>
                 <a href="/topic/publish/page" >发布话题</a>
                 <i></i>
                 <a href="/topic/list/mine" >我的话题</a>
                 <i></i>
                 <a href="/customer/change/password" >修改密码</a>
                 <i></i>
                 <a href="/customer/settings" >个人设置</a>
                 <i></i>
                 <a href="/customer/sign/out" >注销</a>
            </c:if>
        </div>
    </div>
</div>